package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 问卷临时类
 */
public class QuerstionOption implements Serializable {
	//问卷id
	private Long naireId;
	//问卷标题
	private String naireTitle;
	//问卷内容
	private String naireContent;
	//赚钱填问卷奖励金额
	private BigDecimal bonus;
	//有效期
    @JsonSerialize(using=DateJsonSerializer.class)
    @JsonDeserialize(using=DateJsonDeserializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private Date expireTime;
	//问卷类型（1 试用众测问卷 2 赚钱填问卷）
	private Integer type;


	//问题id
	private Long questionId;
	//问题标题
	private String questionTitle;
	//问题类型
	private Integer questionType;

	//选项id
	private Long optionId;
	//选项 ABC
	private String options;
	//选项内容
	private String optionContent;

	public Long getNaireId() {
		return naireId;
	}

	public void setNaireId(Long naireId) {
		this.naireId = naireId;
	}

	public String getNaireTitle() {
		return naireTitle;
	}

	public void setNaireTitle(String naireTitle) {
		this.naireTitle = naireTitle;
	}

	public String getNaireContent() {
		return naireContent;
	}

	public void setNaireContent(String naireContent) {
		this.naireContent = naireContent;
	}

	public Long getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}

	public String getQuestionTitle() {
		return questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}

	public Long getOptionId() {
		return optionId;
	}

	public void setOptionId(Long optionId) {
		this.optionId = optionId;
	}

	public String getOptions() {
		return options;
	}

	public void setOptions(String options) {
		this.options = options;
	}

	public String getOptionContent() {
		return optionContent;
	}

	public void setOptionContent(String optionContent) {
		this.optionContent = optionContent;
	}

	public BigDecimal getBonus() {
		return bonus;
	}

	public void setBonus(BigDecimal bonus) {
		this.bonus = bonus;
	}

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
